Simple Question (Direct)
Simple Question
Q1362790
P512
Q3412758
USER
Which qualification does Erwin Aichinger hold ?
(Q1362790,P512,c(Q3412758))
action filter_type
action find
entity Q1362790
relation P512
type Q3412758
['Q1362790', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?z WHERE { resource:Q1362790 property:P512 ?z . ?z rdf:type ontology:Q3412758 }
Erwin Aichinger
action filter_type
action find
entity Erwin Aichinger
relation academic degree
type qualification
['Erwin Aichinger', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?z WHERE { resource:Erwin_Aichinger property:academic_degree ?z . ?z rdf:type ontology:qualification }
[]
qualification
Q849697
SYSTEM
doctoral degree
Q849697
(Q1362790,P512,c(Q3412758))
action filter_type
action find
entity Q1362790
relation P512
type Q3412758
Erwin Aichinger holds a [ANSWER]
['Q1362790', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?z WHERE { resource:Q1362790 property:P512 ?z . ?z rdf:type ontology:Q3412758 }
doctoral degree
Erwin Aichinger holds a doctoral degree
doctoral degree
action filter_type
action find
entity Erwin Aichinger
relation academic degree
type qualification
['Erwin Aichinger', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?z WHERE { resource:Erwin_Aichinger property:academic_degree ?z . ?z rdf:type ontology:qualification }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1362790
P607
Q198
USER
What battle was that person a part of ?
(Q849697,P607,c(Q198))
action filter_type
action find
entity Q1362790
relation P607
type Q198
['Q849697', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?e WHERE { resource:Q1362790 property:P607 ?e . ?e rdf:type ontology:Q198 }
Erwin Aichinger
action filter_type
action find
entity Erwin Aichinger
relation conflict
type war
['doctoral degree', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?e WHERE { resource:Erwin_Aichinger property:conflict ?e . ?e rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q849697,P607,c(Q198))
action filter_type
action find
entity Q1362790
relation P607
type Q198
What battle was that person a part of
['Q849697', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?e WHERE { resource:Q1362790 property:P607 ?e . ?e rdf:type ontology:Q198 }
World War I
What battle was that person a part of
World War I
action filter_type
action find
entity Erwin Aichinger
relation conflict
type war
['doctoral degree', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?e WHERE { resource:Erwin_Aichinger property:conflict ?e . ?e rdf:type ontology:war }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q361
P361
Q178561
USER
Which battles are a portion of that war ?
(c(Q178561),P361,Q361)
action filter_type
action find_reverse
entity Q361
relation P361
type Q178561
[{'concept': 'Q178561'}, 'P361', 'Q361']
SELECT DISTINCT ?m WHERE { ?m property:P361 resource:Q361 . ?m rdf:type ontology:Q178561 }
World War I
action filter_type
action find_reverse
entity World War I
relation part of
type battle
[{'concept': 'battle'}, 'part of', 'World War I']
SELECT DISTINCT ?m WHERE { ?m property:part_of resource:World_War_I . ?m rdf:type ontology:battle }
[]
battle
Q156554 Q2657479 Q15076387
SYSTEM
Battle of Jutland, raid on Scarborough, Hartlepool and Whitby, Skirmish at Joncherey
Q4677411 Q871617 Q73194 Q1034037 Q700864 Q3090819 Q702255 Q263245 Q4871836 Q677660 Q2053006 Q160011 Q2237192 Q766015 Q4677371 Q156554 Q15076387 Q1778176 Q2013772 Q2657479
(c(Q178561),P361,Q361)
action filter_type
action find_reverse
entity Q361
relation P361
type Q178561
[ANSWERS] are a portion of that war
[{'concept': 'Q178561'}, 'P361', 'Q361']
SELECT DISTINCT ?m WHERE { ?m property:P361 resource:Q361 . ?m rdf:type ontology:Q178561 }
Action off Lerwick Operation Albion Battle of Dogger Bank Battle of the Strait of Otranto Zeebrugge Raid Battle of Dover Strait Battle of the Gulf of Riga Bombardment of Yarmouth and Lowestoft Battle of Más a Tierra Battle of Heligoland Bight (1914) pursuit of Goeben and Breslau Battle of the Falkland Islands Battle of Moon Sound Battle of Dover Strait Action of 4 May 1917 Battle of Jutland Skirmish at Joncherey Battle of Antivari Battle of Dogger Bank raid on Scarborough, Hartlepool and Whitby
Battle of Jutland, raid on Scarborough, Hartlepool and Whitby and Skirmish at Joncherey are a portion of that war
Battle of Jutland raid on Scarborough, Hartlepool and Whitby Skirmish at Joncherey
action filter_type
action find_reverse
entity World War I
relation part of
type battle
[{'concept': 'battle'}, 'part of', 'World War I']
SELECT DISTINCT ?m WHERE { ?m property:part_of resource:World_War_I . ?m rdf:type ontology:battle }
[]
Clarification
Simple Question|Single Entity|Indirect
Q156554
P20
Q502895
USER
Which people have that battle as the location of death ?
(c(Q502895),P20,Q156554)
action filter_type
action find_reverse
entity Q156554
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q156554']
SELECT DISTINCT ?w WHERE { ?w property:P20 resource:Q156554 . ?w rdf:type ontology:Q502895 }
Battle of Jutland
action filter_type
action find_reverse
entity Battle of Jutland
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Battle of Jutland']
SELECT DISTINCT ?w WHERE { ?w property:place_of_death resource:Battle_of_Jutland . ?w rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q2657479
SYSTEM
Did you mean raid on Scarborough, Hartlepool and Whitby ?
Q156554 Q2657479 Q15076387
(c(Q502895),P20,Q156554) (c(Q502895),P20,Q2657479) (c(Q502895),P20,Q15076387)
[ANSWER]
[{'concept': 'Q502895'}, 'P20', 'Q156554'] [{'concept': 'Q502895'}, 'P20', 'Q2657479'] [{'concept': 'Q502895'}, 'P20', 'Q15076387']
SELECT DISTINCT ?w WHERE { ?w property:P20 resource:Q156554 . ?w rdf:type ontology:Q502895 }
Battle of Jutland raid on Scarborough, Hartlepool and Whitby Skirmish at Joncherey
Did you mean raid on Scarborough, Hartlepool and Whitby ?
raid on Scarborough, Hartlepool and Whitby
[{'concept': 'common name'}, 'place of death', 'Battle of Jutland'] [{'concept': 'common name'}, 'place of death', 'raid on Scarborough, Hartlepool and Whitby'] [{'concept': 'common name'}, 'place of death', 'Skirmish at Joncherey']
SELECT DISTINCT ?w WHERE { ?w property:place_of_death resource:Battle_of_Jutland . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Battle of Jutland. Could you tell me the answer for that?
(c(Q502895),P20,Q156554)
Q156554
[{'concept': 'Q502895'}, 'P20', 'Q156554']
[{'concept': 'common name'}, 'place of death', 'Battle of Jutland']
[]
Q69087 Q541177
SYSTEM
Gorch Fock, Horace Hood
Q69087 Q541177
(c(Q502895),P20,Q156554)
action filter_type
action find_reverse
entity Q156554
relation P20
type Q502895
[ANSWERS] have that battle as the location of death
[{'concept': 'Q502895'}, 'P20', 'Q156554']
SELECT DISTINCT ?w WHERE { ?w property:P20 resource:Q156554 . ?w rdf:type ontology:Q502895 }
Gorch Fock Horace Hood
Gorch Fock and Horace Hood have that battle as the location of death
Gorch Fock Horace Hood
action filter_type
action find_reverse
entity Battle of Jutland
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Battle of Jutland']
SELECT DISTINCT ?w WHERE { ?w property:place_of_death resource:Battle_of_Jutland . ?w rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1060058 Q69087
P607
Q198
USER
Which wars were Gorch Fock or Renato Ricci a part of ?
OR((Q69087,P607,c(Q198)), (Q1060058,P607,c(Q198)))
action filter_type
action union
action find
entity Q69087
relation P607
action find
entity Q1060058
relation P607
type Q198
{'OR': [['Q69087', 'P607', {'concept': 'Q198'}], ['Q1060058', 'P607', {'concept': 'Q198'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?v ) { ( resource:Q69087 ) ( resource:Q1060058 ) } . ?v property:P607 ?s } . ?s rdf:type ontology:Q198 }
Renato Ricci Gorch Fock
action filter_type
action union
action find
entity Gorch Fock
relation conflict
action find
entity Renato Ricci
relation conflict
type war
{'OR': [['Gorch Fock', 'conflict', {'concept': 'war'}], ['Renato Ricci', 'conflict', {'concept': 'war'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?v ) { ( resource:Gorch_Fock ) ( resource:Renato_Ricci ) } . ?v property:conflict ?s } . ?s rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
OR((Q69087,P607,c(Q198)), (Q1060058,P607,c(Q198)))
action filter_type
action union
action find
entity Q69087
relation P607
action find
entity Q1060058
relation P607
type Q198
[ANSWER] was Gorch Fock or Renato Ricci a part of
{'OR': [['Q69087', 'P607', {'concept': 'Q198'}], ['Q1060058', 'P607', {'concept': 'Q198'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?v ) { ( resource:Q69087 ) ( resource:Q1060058 ) } . ?v property:P607 ?s } . ?s rdf:type ontology:Q198 }
World War I
World War I was Gorch Fock or Renato Ricci a part of
World War I
action filter_type
action union
action find
entity Gorch Fock
relation conflict
action find
entity Renato Ricci
relation conflict
type war
{'OR': [['Gorch Fock', 'conflict', {'concept': 'war'}], ['Renato Ricci', 'conflict', {'concept': 'war'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?v ) { ( resource:Gorch_Fock ) ( resource:Renato_Ricci ) } . ?v property:conflict ?s } . ?s rdf:type ontology:war }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1060058
P20
Q56061
USER
Where did Renato Ricci die?
(Q361,P20,c(Q56061))
action filter_type
action find
entity Q1060058
relation P20
type Q56061
['Q361', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q1060058 property:P20 ?w . ?w rdf:type ontology:Q56061 }
Renato Ricci
action filter_type
action find
entity Renato Ricci
relation place of death
type administrative territorial entity
['World War I', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Renato_Ricci property:place_of_death ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q361,P20,c(Q56061))
action filter_type
action find
entity Q1060058
relation P20
type Q56061
Renato Ricci died in [ANSWER]
['Q361', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q1060058 property:P20 ?w . ?w rdf:type ontology:Q56061 }
Rome
Renato Ricci died in Rome
Rome
action filter_type
action find
entity Renato Ricci
relation place of death
type administrative territorial entity
['World War I', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Renato_Ricci property:place_of_death ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P417
Q1445650 Q502895 Q56061
USER
Which administrative territories have more number of holidays and people as their patron saint than that administrative territory ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q220
relation P417
type Q1445650
type Q502895
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?w WHERE { { ?w property:P417 ?b . ?w rdf:type ontology:Q56061 . ?b rdf:type ontology:Q1445650 } UNION { ?w property:P417 ?b . ?w rdf:type ontology:Q56061 . ?b rdf:type ontology:Q502895 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { ?p rdf:type ?h . VALUES ( ?h ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } . resource:Q220 property:P417 ?p } } . FILTER ( ?l > ?n ) }
action greater
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Rome
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?w WHERE { { ?w property:patron_saint ?b . ?w rdf:type ontology:administrative_territorial_entity . ?b rdf:type ontology:holiday } UNION { ?w property:patron_saint ?b . ?w rdf:type ontology:administrative_territorial_entity . ?b rdf:type ontology:common_name } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { ?p rdf:type ?h . VALUES ( ?h ) { ( ontology:holiday ) ( ontology:common_name ) } } . resource:Rome property:patron_saint ?p } } . FILTER ( ?l > ?n ) }
[]
holiday common name administrative territorial entity
SYSTEM
2
Q39519 Q220
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q220
relation P417
type Q1445650
type Q502895
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?w WHERE { { ?w property:P417 ?b . ?w rdf:type ontology:Q56061 . ?b rdf:type ontology:Q1445650 } UNION { ?w property:P417 ?b . ?w rdf:type ontology:Q56061 . ?b rdf:type ontology:Q502895 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { ?p rdf:type ?h . VALUES ( ?h ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } . resource:Q220 property:P417 ?p } } . FILTER ( ?l > ?n ) }
Brinzio Rome
2
action greater
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Rome
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?w WHERE { { ?w property:patron_saint ?b . ?w rdf:type ontology:administrative_territorial_entity . ?b rdf:type ontology:holiday } UNION { ?w property:patron_saint ?b . ?w rdf:type ontology:administrative_territorial_entity . ?b rdf:type ontology:common_name } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { ?p rdf:type ?h . VALUES ( ?h ) { ( ontology:holiday ) ( ontology:common_name ) } } . resource:Rome property:patron_saint ?p } } . FILTER ( ?l > ?n ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q220
P190
Q486972
USER
Which human settlement is twin city of Rome ?
(Q220,P190,c(Q486972))
action filter_type
action find
entity Q220
relation P190
type Q486972
['Q220', 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q486972 . resource:Q220 property:P190 ?o }
Rome
action filter_type
action find
entity Rome
relation sister city
type human settlement
['Rome', 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:human_settlement . resource:Rome property:sister_city ?o }
[]
human settlement
Q31487
SYSTEM
Kraków
Q31487
(Q220,P190,c(Q486972))
action filter_type
action find
entity Q220
relation P190
type Q486972
[ANSWER] is twin city of Rome
['Q220', 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q486972 . resource:Q220 property:P190 ?o }
Kraków
Kraków is twin city of Rome
Kraków
action filter_type
action find
entity Rome
relation sister city
type human settlement
['Rome', 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:human_settlement . resource:Rome property:sister_city ?o }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q220
P36
Q15089 Q1048835
USER
How many provinces of Italy or political territories have Rome as their capital ?
(c(Q15089),P36,Q220) (c(Q1048835),P36,Q220)
action count
action union
action filter_type
action find_reverse
entity Q220
relation P36
type Q15089
action filter_type
action find_reverse
entity Q220
relation P36
type Q1048835
[{'concept': 'Q15089'}, 'P36', 'Q220'] [{'concept': 'Q1048835'}, 'P36', 'Q220']
SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { { ?u rdf:type ontology:Q15089 . ?u property:P36 resource:Q220 } UNION { ?u property:P36 resource:Q220 . ?u rdf:type ontology:Q1048835 } }
Rome
action count
action union
action filter_type
action find_reverse
entity Rome
relation capital
type province of Italy
action filter_type
action find_reverse
entity Rome
relation capital
type political territorial entity
[{'concept': 'province of Italy'}, 'capital', 'Rome'] [{'concept': 'political territorial entity'}, 'capital', 'Rome']
SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { { ?u rdf:type ontology:province_of_Italy . ?u property:capital resource:Rome } UNION { ?u property:capital resource:Rome . ?u rdf:type ontology:political_territorial_entity } }
[]
province of Italy political territorial entity
SYSTEM
2
Q15119 Q18288160
(c(Q15089),P36,Q220) (c(Q1048835),P36,Q220)
action count
action union
action filter_type
action find_reverse
entity Q220
relation P36
type Q15089
action filter_type
action find_reverse
entity Q220
relation P36
type Q1048835
[ANSWER]
[{'concept': 'Q15089'}, 'P36', 'Q220'] [{'concept': 'Q1048835'}, 'P36', 'Q220']
SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { { ?u rdf:type ontology:Q15089 . ?u property:P36 resource:Q220 } UNION { ?u property:P36 resource:Q220 . ?u rdf:type ontology:Q1048835 } }
Province of Rome Metropolitan City of Rome
2
action count
action union
action filter_type
action find_reverse
entity Rome
relation capital
type province of Italy
action filter_type
action find_reverse
entity Rome
relation capital
type political territorial entity
[{'concept': 'province of Italy'}, 'capital', 'Rome'] [{'concept': 'political territorial entity'}, 'capital', 'Rome']
SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { { ?u rdf:type ontology:province_of_Italy . ?u property:capital resource:Rome } UNION { ?u property:capital resource:Rome . ?u rdf:type ontology:political_territorial_entity } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q220
P189
Q838948
USER
What were found at that administrative territory ?
action filter_type
action find_reverse
entity Q220
relation P189
type Q838948
SELECT DISTINCT ?m WHERE { ?m property:P189 resource:Q220 . ?m rdf:type ontology:Q838948 }
Rome
action filter_type
action find_reverse
entity Rome
relation location of discovery
type work of art
SELECT DISTINCT ?m WHERE { ?m property:location_of_discovery resource:Rome . ?m rdf:type ontology:work_of_art }
[]
work of art
Q18668045 Q18667809
SYSTEM
The Old Fisherman, Sauroctonos Borghese
Q18668045 Q18667809
action filter_type
action find_reverse
entity Q220
relation P189
type Q838948
[ANSWERS] were found at that administrative territory
SELECT DISTINCT ?m WHERE { ?m property:P189 resource:Q220 . ?m rdf:type ontology:Q838948 }
The Old Fisherman Sauroctonos Borghese
The Old Fisherman and Sauroctonos Borghese were found at that administrative territory
The Old Fisherman Sauroctonos Borghese
action filter_type
action find_reverse
entity Rome
relation location of discovery
type work of art
SELECT DISTINCT ?m WHERE { ?m property:location_of_discovery resource:Rome . ?m rdf:type ontology:work_of_art }
[]