Simple Question (Direct)
Simple Question
Q6684702
P19
Q515
USER
Which city is the place of birth of Lothar Ambrosius ?
(Q6684702,P19,c(Q515))
action filter_type
action find
entity Q6684702
relation P19
type Q515
['Q6684702', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q515 . resource:Q6684702 property:P19 ?t }
Lothar Ambrosius
action filter_type
action find
entity Lothar Ambrosius
relation place of birth
type city
['Lothar Ambrosius', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:city . resource:Lothar_Ambrosius property:place_of_birth ?t }
[]
city
Q3185
SYSTEM
Hildesheim
Q3185
(Q6684702,P19,c(Q515))
action filter_type
action find
entity Q6684702
relation P19
type Q515
[ANSWER]
['Q6684702', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q515 . resource:Q6684702 property:P19 ?t }
Hildesheim
Hildesheim
action filter_type
action find
entity Lothar Ambrosius
relation place of birth
type city
['Lothar Ambrosius', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:city . resource:Lothar_Ambrosius property:place_of_birth ?t }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6684702
P166
Q18328097
USER
What was won by Lothar Ambrosius ?
(Q6684702,P166,c(Q18328097))
action filter_type
action find
entity Q6684702
relation P166
type Q18328097
['Q6684702', 'P166', {'concept': 'Q18328097'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q18328097 . resource:Q6684702 property:P166 ?p }
Lothar Ambrosius
action filter_type
action find
entity Lothar Ambrosius
relation award received
type courage award
['Lothar Ambrosius', 'award received', {'concept': 'courage award'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:courage_award . resource:Lothar_Ambrosius property:award_received ?p }
[]
courage award
Q17412908
SYSTEM
German Cross in Gold
Q17412908
(Q6684702,P166,c(Q18328097))
action filter_type
action find
entity Q6684702
relation P166
type Q18328097
[ANSWER]
['Q6684702', 'P166', {'concept': 'Q18328097'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q18328097 . resource:Q6684702 property:P166 ?p }
German Cross in Gold
German Cross in Gold
action filter_type
action find
entity Lothar Ambrosius
relation award received
type courage award
['Lothar Ambrosius', 'award received', {'concept': 'courage award'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:courage_award . resource:Lothar_Ambrosius property:award_received ?p }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q6684702
Q618779
USER
And which award?
(Q6684702,P166,c(Q618779))
action filter_type
action find
entity Q6684702
relation P166
type Q618779
['Q6684702', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?l WHERE { resource:Q6684702 property:P166 ?l . ?l rdf:type ontology:Q618779 }
Lothar Ambrosius
action filter_type
action find
entity Lothar Ambrosius
relation award received
type award
['Lothar Ambrosius', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?l WHERE { resource:Lothar_Ambrosius property:award_received ?l . ?l rdf:type ontology:award }
[]
award
Q156014 Q165558
SYSTEM
German Cross, Knight's Cross of the Iron Cross
Q156014 Q165558
(Q6684702,P166,c(Q618779))
action filter_type
action find
entity Q6684702
relation P166
type Q618779
[ANSWERS]
['Q6684702', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?l WHERE { resource:Q6684702 property:P166 ?l . ?l rdf:type ontology:Q618779 }
German Cross Knight's Cross of the Iron Cross
German Cross Knight's Cross of the Iron Cross
action filter_type
action find
entity Lothar Ambrosius
relation award received
type award
['Lothar Ambrosius', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?l WHERE { resource:Lothar_Ambrosius property:award_received ?l . ?l rdf:type ontology:award }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q97451
P166
Q502895
USER
Did Werner Milch receive the award titled those ones ?
(Q97451,P166,Q156014) (Q97451,P166,Q165558)
action is_in
entity prev_answer
action find
entity Q97451
relation P166
['Q97451', 'P166', 'Q156014'] ['Q97451', 'P166', 'Q165558']
ASK WHERE { VALUES ( ?s ) { ( resource:Q156014 ) ( resource:Q165558 ) } . resource:Q97451 property:P166 ?s }
Werner Milch
action is_in
entity prev_answer
action find
entity Werner Milch
relation award received
['Werner Milch', 'award received', 'German Cross'] ['Werner Milch', 'award received', "Knight's Cross of the Iron Cross"]
ASK WHERE { VALUES ( ?s ) { ( resource:German_Cross ) ( resource:Knight's_Cross_of_the_Iron_Cross ) } . resource:Werner_Milch property:award_received ?s }
[]
common name
SYSTEM
YES
(Q97451,P166,Q156014) (Q97451,P166,Q165558)
action is_in
entity prev_answer
action find
entity Q97451
relation P166
[ANSWER]
['Q97451', 'P166', 'Q156014'] ['Q97451', 'P166', 'Q165558']
ASK WHERE { VALUES ( ?s ) { ( resource:Q156014 ) ( resource:Q165558 ) } . resource:Q97451 property:P166 ?s }
Yes
action is_in
entity prev_answer
action find
entity Werner Milch
relation award received
['Werner Milch', 'award received', 'German Cross'] ['Werner Milch', 'award received', "Knight's Cross of the Iron Cross"]
ASK WHERE { VALUES ( ?s ) { ( resource:German_Cross ) ( resource:Knight's_Cross_of_the_Iron_Cross ) } . resource:Werner_Milch property:award_received ?s }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1357539 Q97451
P27
Q1048835
USER
Which political territories are the native countriesof Werner Milch or Ernst Berl ?
OR((Q97451,P27,c(Q1048835)), (Q1357539,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q97451
relation P27
action find
entity Q1357539
relation P27
type Q1048835
{'OR': [['Q97451', 'P27', {'concept': 'Q1048835'}], ['Q1357539', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q97451 property:P27 ?t } UNION { resource:Q1357539 property:P27 ?t } } . ?t rdf:type ontology:Q1048835 }
Ernst Berl Werner Milch
action filter_type
action union
action find
entity Werner Milch
relation country of citizenship
action find
entity Ernst Berl
relation country of citizenship
type political territorial entity
{'OR': [['Werner Milch', 'country of citizenship', {'concept': 'political territorial entity'}], ['Ernst Berl', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Werner_Milch property:country_of_citizenship ?t } UNION { resource:Ernst_Berl property:country_of_citizenship ?t } } . ?t rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q40
SYSTEM
Germany, Austria
Q183 Q40
OR((Q97451,P27,c(Q1048835)), (Q1357539,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q97451
relation P27
action find
entity Q1357539
relation P27
type Q1048835
[ANSWERS]
{'OR': [['Q97451', 'P27', {'concept': 'Q1048835'}], ['Q1357539', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q97451 property:P27 ?t } UNION { resource:Q1357539 property:P27 ?t } } . ?t rdf:type ontology:Q1048835 }
Germany Austria
Germany Austria
action filter_type
action union
action find
entity Werner Milch
relation country of citizenship
action find
entity Ernst Berl
relation country of citizenship
type political territorial entity
{'OR': [['Werner Milch', 'country of citizenship', {'concept': 'political territorial entity'}], ['Ernst Berl', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Werner_Milch property:country_of_citizenship ?t } UNION { resource:Ernst_Berl property:country_of_citizenship ?t } } . ?t rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1357539
P106
Q12737077
USER
What does Ernst Berl do for a living?
(Q183,P106,c(Q12737077)) (Q40,P106,c(Q12737077))
action filter_type
action find
entity Q1357539
relation P106
type Q12737077
['Q183', 'P106', {'concept': 'Q12737077'}] ['Q40', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q1357539 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Ernst Berl
action filter_type
action find
entity Ernst Berl
relation occupation
type occupation
['Germany', 'occupation', {'concept': 'occupation'}] ['Austria', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Ernst_Berl property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q593644
SYSTEM
chemist
Q593644
(Q183,P106,c(Q12737077)) (Q40,P106,c(Q12737077))
action filter_type
action find
entity Q1357539
relation P106
type Q12737077
[ANSWER]
['Q183', 'P106', {'concept': 'Q12737077'}] ['Q40', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q1357539 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
chemist
chemist
action filter_type
action find
entity Ernst Berl
relation occupation
type occupation
['Germany', 'occupation', {'concept': 'occupation'}] ['Austria', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Ernst_Berl property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P106
Q95074 Q82799
USER
How many fictional characters or names have a job as that occupation ?
(c(Q95074),P106,Q593644) (c(Q82799),P106,Q593644) (c(Q95074),P106,Q593644) (c(Q82799),P106,Q593644)
action count
action union
action filter_type
action find_reverse
entity Q593644
relation P106
type Q95074
action filter_type
action find_reverse
entity Q593644
relation P106
type Q82799
[{'concept': 'Q95074'}, 'P106', 'Q593644'] [{'concept': 'Q82799'}, 'P106', 'Q593644'] [{'concept': 'Q95074'}, 'P106', 'Q593644'] [{'concept': 'Q82799'}, 'P106', 'Q593644']
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { ?w rdf:type ontology:Q95074 . ?w property:P106 resource:Q593644 } UNION { ?w property:P106 resource:Q593644 . ?w rdf:type ontology:Q82799 } }
action count
action union
action filter_type
action find_reverse
entity chemist
relation occupation
type fictional character
action filter_type
action find_reverse
entity chemist
relation occupation
type name
[{'concept': 'fictional character'}, 'occupation', 'chemist'] [{'concept': 'name'}, 'occupation', 'chemist'] [{'concept': 'fictional character'}, 'occupation', 'chemist'] [{'concept': 'name'}, 'occupation', 'chemist']
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { ?w rdf:type ontology:fictional_character . ?w property:occupation resource:chemist } UNION { ?w property:occupation resource:chemist . ?w rdf:type ontology:name } }
[]
fictional character name
SYSTEM
4
Q158940 Q24644183 Q295375 Q217533
(c(Q95074),P106,Q593644) (c(Q82799),P106,Q593644) (c(Q95074),P106,Q593644) (c(Q82799),P106,Q593644)
action count
action union
action filter_type
action find_reverse
entity Q593644
relation P106
type Q95074
action filter_type
action find_reverse
entity Q593644
relation P106
type Q82799
[ANSWER]
[{'concept': 'Q95074'}, 'P106', 'Q593644'] [{'concept': 'Q82799'}, 'P106', 'Q593644'] [{'concept': 'Q95074'}, 'P106', 'Q593644'] [{'concept': 'Q82799'}, 'P106', 'Q593644']
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { ?w rdf:type ontology:Q95074 . ?w property:P106 resource:Q593644 } UNION { ?w property:P106 resource:Q593644 . ?w rdf:type ontology:Q82799 } }
Bane Solei Scarecrow Joker
4
action count
action union
action filter_type
action find_reverse
entity chemist
relation occupation
type fictional character
action filter_type
action find_reverse
entity chemist
relation occupation
type name
[{'concept': 'fictional character'}, 'occupation', 'chemist'] [{'concept': 'name'}, 'occupation', 'chemist'] [{'concept': 'fictional character'}, 'occupation', 'chemist'] [{'concept': 'name'}, 'occupation', 'chemist']
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { ?w rdf:type ontology:fictional_character . ?w property:occupation resource:chemist } UNION { ?w property:occupation resource:chemist . ?w rdf:type ontology:name } }
[]