Simple Question (Direct)
Simple Question
Q72815
P21
Q290
USER
Which sex does Ernst Feßmann have ?
(Q72815,P21,c(Q290))
action filter_type
action find
entity Q72815
relation P21
type Q290
['Q72815', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q72815 property:P21 ?x . ?x rdf:type ontology:Q290 }
Ernst Feßmann
action filter_type
action find
entity Ernst Feßmann
relation gender
type sex
['Ernst Feßmann', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Ernst_Feßmann property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q72815,P21,c(Q290))
action filter_type
action find
entity Q72815
relation P21
type Q290
Ernst Feßmann has a [ANSWER]
['Q72815', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q72815 property:P21 ?x . ?x rdf:type ontology:Q290 }
male
Ernst Feßmann has a male
male
action filter_type
action find
entity Ernst Feßmann
relation gender
type sex
['Ernst Feßmann', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Ernst_Feßmann property:gender ?x . ?x rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by min number of people ?
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?r ) { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?x ) WHERE { ?a property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 } GROUP BY ?n } } . FILTER ( ?t = ?r ) . { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?t ) WHERE { ?z property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?c } }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?r ) { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?x ) WHERE { ?a property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name } GROUP BY ?n } } . FILTER ( ?t = ?r ) . { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?t ) WHERE { ?z property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?c } }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[ANSWERS] are played by min number of people
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?r ) { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?x ) WHERE { ?a property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 } GROUP BY ?n } } . FILTER ( ?t = ?r ) . { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?t ) WHERE { ?z property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?c } }
spoon cajón wind instrument
Spoon, cajón and wind instrument are played by min number of people
spoon cajón wind instrument
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?r ) { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?x ) WHERE { ?a property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name } GROUP BY ?n } } . FILTER ( ?t = ?r ) . { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?t ) WHERE { ?z property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?c } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q173453
P361
Q15989253
USER
What is a component of that musical instrument ?
(c(Q15989253),P361,Q173453)
action filter_type
action find_reverse
entity Q173453
relation P361
type Q15989253
[{'concept': 'Q15989253'}, 'P361', 'Q173453']
SELECT DISTINCT ?p WHERE { ?p property:P361 resource:Q173453 . ?p rdf:type ontology:Q15989253 }
wind instrument
action filter_type
action find_reverse
entity wind instrument
relation part of
type part
[{'concept': 'part'}, 'part of', 'wind instrument']
SELECT DISTINCT ?p WHERE { ?p property:part_of resource:wind_instrument . ?p rdf:type ontology:part }
[]
part
Clarification for simple ques.
Q1879664
SYSTEM
Did you mean spoon ?
Q1879664 Q748455 Q173453
(c(Q15989253),P361,Q1879664) (c(Q15989253),P361,Q748455) (c(Q15989253),P361,Q173453)
[ANSWER]
[{'concept': 'Q15989253'}, 'P361', 'Q1879664'] [{'concept': 'Q15989253'}, 'P361', 'Q748455'] [{'concept': 'Q15989253'}, 'P361', 'Q173453']
SELECT DISTINCT ?p WHERE { ?p property:P361 resource:Q173453 . ?p rdf:type ontology:Q15989253 }
spoon cajón wind instrument
Did you mean spoon ?
spoon
[{'concept': 'part'}, 'part of', 'spoon'] [{'concept': 'part'}, 'part of', 'cajón'] [{'concept': 'part'}, 'part of', 'wind instrument']
SELECT DISTINCT ?p WHERE { ?p property:part_of resource:wind_instrument . ?p rdf:type ontology:part }
[]
Simple Question (Coreferenced)
USER
No, I meant wind instrument. Could you tell me the answer for that?
(c(Q15989253),P361,Q173453)
Q173453
[{'concept': 'Q15989253'}, 'P361', 'Q173453']
[{'concept': 'part'}, 'part of', 'wind instrument']
[]
Q26823384
SYSTEM
mouthpiece
Q26823384
(c(Q15989253),P361,Q173453)
action filter_type
action find_reverse
entity Q173453
relation P361
type Q15989253
A component of that musical instrument is the [ANSWER]
[{'concept': 'Q15989253'}, 'P361', 'Q173453']
SELECT DISTINCT ?p WHERE { ?p property:P361 resource:Q173453 . ?p rdf:type ontology:Q15989253 }
mouthpiece
A component of that musical instrument is the mouthpiece
mouthpiece
action filter_type
action find_reverse
entity wind instrument
relation part of
type part
[{'concept': 'part'}, 'part of', 'wind instrument']
SELECT DISTINCT ?p WHERE { ?p property:part_of resource:wind_instrument . ?p rdf:type ontology:part }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q72815
P410
Q4189293
USER
Which is the title held by Ernst Feßmann ?
(Q72815,P410,c(Q4189293))
action filter_type
action find
entity Q72815
relation P410
type Q4189293
['Q72815', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?s WHERE { resource:Q72815 property:P410 ?s . ?s rdf:type ontology:Q4189293 }
Ernst Feßmann
action filter_type
action find
entity Ernst Feßmann
relation military rank
type title
['Ernst Feßmann', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?s WHERE { resource:Ernst_Feßmann property:military_rank ?s . ?s rdf:type ontology:title }
[]
title
Q664082
SYSTEM
General der Panzertruppe
Q664082
(Q72815,P410,c(Q4189293))
action filter_type
action find
entity Q72815
relation P410
type Q4189293
[ANSWER] is the title held by Ernst Feßmann
['Q72815', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?s WHERE { resource:Q72815 property:P410 ?s . ?s rdf:type ontology:Q4189293 }
General der Panzertruppe
General der Panzertruppe is the title held by Ernst Feßmann
General der Panzertruppe
action filter_type
action find
entity Ernst Feßmann
relation military rank
type title
['Ernst Feßmann', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?s WHERE { resource:Ernst_Feßmann property:military_rank ?s . ?s rdf:type ontology:title }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q72815
P20
Q15617994
USER
Where did Ernst Feßmann expire ?
(Q72815,P20,c(Q15617994))
action filter_type
action find
entity Q72815
relation P20
type Q15617994
['Q72815', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q72815 property:P20 ?t . ?t rdf:type ontology:Q15617994 }
Ernst Feßmann
action filter_type
action find
entity Ernst Feßmann
relation place of death
type designation for an administrative territorial entity
['Ernst Feßmann', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Ernst_Feßmann property:place_of_death ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q202116
SYSTEM
Pullach
Q202116
(Q72815,P20,c(Q15617994))
action filter_type
action find
entity Q72815
relation P20
type Q15617994
Ernst Feßmann expired [ANSWER]
['Q72815', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q72815 property:P20 ?t . ?t rdf:type ontology:Q15617994 }
Pullach
Ernst Feßmann expired Pullach
Pullach
action filter_type
action find
entity Ernst Feßmann
relation place of death
type designation for an administrative territorial entity
['Ernst Feßmann', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Ernst_Feßmann property:place_of_death ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q72815
P106
Q12737077
USER
What is the job of that person ?
(Q202116,P106,c(Q12737077))
action filter_type
action find
entity Q72815
relation P106
type Q12737077
['Q202116', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q72815 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Ernst Feßmann
action filter_type
action find
entity Ernst Feßmann
relation occupation
type occupation
['Pullach', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Ernst_Feßmann property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q47064
SYSTEM
military personnel
Q47064
(Q202116,P106,c(Q12737077))
action filter_type
action find
entity Q72815
relation P106
type Q12737077
The job of that person is of [ANSWER]
['Q202116', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q72815 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
military personnel
The job of that person is of military personnel
military personnel
action filter_type
action find
entity Ernst Feßmann
relation occupation
type occupation
['Pullach', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Ernst_Feßmann property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P106
Q35120 Q95074
USER
How many entities or fictional characters have the profession of that occupation ?
(c(Q35120),P106,Q47064) (c(Q95074),P106,Q47064) (c(Q35120),P106,Q47064) (c(Q95074),P106,Q47064)
action count
action union
action filter_type
action find_reverse
entity Q47064
relation P106
type Q35120
action filter_type
action find_reverse
entity Q47064
relation P106
type Q95074
[{'concept': 'Q35120'}, 'P106', 'Q47064'] [{'concept': 'Q95074'}, 'P106', 'Q47064'] [{'concept': 'Q35120'}, 'P106', 'Q47064'] [{'concept': 'Q95074'}, 'P106', 'Q47064']
SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { VALUES ( ?p ) { ( ontology:Q35120 ) ( ontology:Q95074 ) } . ?b rdf:type ?p }
action count
action union
action filter_type
action find_reverse
entity military personnel
relation occupation
type entity
action filter_type
action find_reverse
entity military personnel
relation occupation
type fictional character
[{'concept': 'entity'}, 'occupation', 'military personnel'] [{'concept': 'fictional character'}, 'occupation', 'military personnel'] [{'concept': 'entity'}, 'occupation', 'military personnel'] [{'concept': 'fictional character'}, 'occupation', 'military personnel']
SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { VALUES ( ?p ) { ( ontology:entity ) ( ontology:fictional_character ) } . ?b rdf:type ?p }
[]
entity fictional character
SYSTEM
18
Q5447913 Q7181771 Q21971504 Q23777554 Q23024676 Q23301703 Q23014839 Q23826628 Q610519 Q23900741 Q7167342 Q6524042 Q21972177 Q23010238 Q24020978 Q23047434 Q23012307 Q23053752
(c(Q35120),P106,Q47064) (c(Q95074),P106,Q47064) (c(Q35120),P106,Q47064) (c(Q95074),P106,Q47064)
action count
action union
action filter_type
action find_reverse
entity Q47064
relation P106
type Q35120
action filter_type
action find_reverse
entity Q47064
relation P106
type Q95074
[ANSWER]
[{'concept': 'Q35120'}, 'P106', 'Q47064'] [{'concept': 'Q95074'}, 'P106', 'Q47064'] [{'concept': 'Q35120'}, 'P106', 'Q47064'] [{'concept': 'Q95074'}, 'P106', 'Q47064']
SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { VALUES ( ?p ) { ( ontology:Q35120 ) ( ontology:Q95074 ) } . ?b rdf:type ?p }
Fighting McCooks Phil Cerreta André de Saint-Avit Jack Reese Robbie Mosley Officer Thomas Mark Chase Jimmy Wendall Matt Santos Nicholas Alexander Percy Fitzwallace Leo McGarry Jean-Marie-François Morhange Gina Toscano Colonel Leahy Sally Ken Shannon Alan Adamle
18
action count
action union
action filter_type
action find_reverse
entity military personnel
relation occupation
type entity
action filter_type
action find_reverse
entity military personnel
relation occupation
type fictional character
[{'concept': 'entity'}, 'occupation', 'military personnel'] [{'concept': 'fictional character'}, 'occupation', 'military personnel'] [{'concept': 'entity'}, 'occupation', 'military personnel'] [{'concept': 'fictional character'}, 'occupation', 'military personnel']
SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { VALUES ( ?p ) { ( ontology:entity ) ( ontology:fictional_character ) } . ?b rdf:type ?p }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q72815
P19
Q7275
USER
Which state is the place of birth of Ernst Feßmann ?
(Q72815,P19,c(Q7275))
action filter_type
action find
entity Q72815
relation P19
type Q7275
['Q72815', 'P19', {'concept': 'Q7275'}]
SELECT DISTINCT ?d WHERE { resource:Q72815 property:P19 ?d . ?d rdf:type ontology:Q7275 }
Ernst Feßmann
action filter_type
action find
entity Ernst Feßmann
relation place of birth
type state
['Ernst Feßmann', 'place of birth', {'concept': 'state'}]
SELECT DISTINCT ?d WHERE { resource:Ernst_Feßmann property:place_of_birth ?d . ?d rdf:type ontology:state }
[]
state
Q980
SYSTEM
Bavaria
Q980
(Q72815,P19,c(Q7275))
action filter_type
action find
entity Q72815
relation P19
type Q7275
[ANSWER] is the place of birth of Ernst Feßmann
['Q72815', 'P19', {'concept': 'Q7275'}]
SELECT DISTINCT ?d WHERE { resource:Q72815 property:P19 ?d . ?d rdf:type ontology:Q7275 }
Bavaria
Bavaria is the place of birth of Ernst Feßmann
Bavaria
action filter_type
action find
entity Ernst Feßmann
relation place of birth
type state
['Ernst Feßmann', 'place of birth', {'concept': 'state'}]
SELECT DISTINCT ?d WHERE { resource:Ernst_Feßmann property:place_of_birth ?d . ?d rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q72815
P607
Q198
USER
Which wars did that person take part in ?
(Q980,P607,c(Q198))
action filter_type
action find
entity Q72815
relation P607
type Q198
['Q980', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?v WHERE { resource:Q72815 property:P607 ?v . ?v rdf:type ontology:Q198 }
Ernst Feßmann
action filter_type
action find
entity Ernst Feßmann
relation conflict
type war
['Bavaria', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?v WHERE { resource:Ernst_Feßmann property:conflict ?v . ?v rdf:type ontology:war }
[]
war
Q362 Q361
SYSTEM
World War II, World War I
Q362 Q361
(Q980,P607,c(Q198))
action filter_type
action find
entity Q72815
relation P607
type Q198
That person took part in [ANSWERS]
['Q980', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?v WHERE { resource:Q72815 property:P607 ?v . ?v rdf:type ontology:Q198 }
World War II World War I
That person took part in World War II and World War I
World War II World War I
action filter_type
action find
entity Ernst Feßmann
relation conflict
type war
['Bavaria', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?v WHERE { resource:Ernst_Feßmann property:conflict ?v . ?v rdf:type ontology:war }
[]