Simple Question (Direct)
Simple Question
Q764995
P39
Q12737077
USER
Which occupations were the positions occupied by Carl Ludwig August von Ende ?
(Q764995,P39,c(Q12737077))
action filter_type
action find
entity Q764995
relation P39
type Q12737077
['Q764995', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q764995 property:P39 ?y }
Carl Ludwig August von Ende
action filter_type
action find
entity Carl Ludwig August von Ende
relation position held
type occupation
['Carl Ludwig August von Ende', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Carl_Ludwig_August_von_Ende property:position_held ?y }
[]
occupation
Q18627793 Q18627724 Q17854096
SYSTEM
member of the Prussian Second Chamber, Member of the Prussian House of Representatives, member of the Reichstag of the German Empire
Q18627793 Q18627724 Q17854096
(Q764995,P39,c(Q12737077))
action filter_type
action find
entity Q764995
relation P39
type Q12737077
[ANSWERS] were the positions occupied by Carl Ludwig August von Ende
['Q764995', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q12737077 . resource:Q764995 property:P39 ?y }
member of the Prussian Second Chamber Member of the Prussian House of Representatives member of the Reichstag of the German Empire
Member of the Prussian Second Chamber, Member of the Prussian House of Representatives and member of the Reichstag of the German Empire were the positions occupied by Carl Ludwig August von Ende
member of the Prussian Second Chamber Member of the Prussian House of Representatives member of the Reichstag of the German Empire
action filter_type
action find
entity Carl Ludwig August von Ende
relation position held
type occupation
['Carl Ludwig August von Ende', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:occupation . resource:Carl_Ludwig_August_von_Ende property:position_held ?y }
[]
Clarification
Simple Question|Single Entity|Indirect
Q17854096
P17
Q3024240
USER
Which former country does that occupation belong to ?
(Q17854096,P17,c(Q3024240))
action filter_type
action find
entity Q17854096
relation P17
type Q3024240
['Q17854096', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ?q WHERE { resource:Q17854096 property:P17 ?q . ?q rdf:type ontology:Q3024240 }
member of the Reichstag of the German Empire
action filter_type
action find
entity member of the Reichstag of the German Empire
relation country
type former country
['member of the Reichstag of the German Empire', 'country', {'concept': 'former country'}]
SELECT DISTINCT ?q WHERE { resource:member_of_the_Reichstag_of_the_German_Empire property:country ?q . ?q rdf:type ontology:former_country }
[]
former country
Clarification for simple ques.
Q18627724
SYSTEM
Did you mean Member of the Prussian House of Representatives ?
Q18627793 Q18627724 Q17854096
(Q18627793,P17,c(Q3024240)) (Q18627724,P17,c(Q3024240)) (Q17854096,P17,c(Q3024240))
[ANSWER]
['Q18627793', 'P17', {'concept': 'Q3024240'}] ['Q18627724', 'P17', {'concept': 'Q3024240'}] ['Q17854096', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ?q WHERE { resource:Q17854096 property:P17 ?q . ?q rdf:type ontology:Q3024240 }
member of the Prussian Second Chamber Member of the Prussian House of Representatives member of the Reichstag of the German Empire
Did you mean Member of the Prussian House of Representatives ?
Member of the Prussian House of Representatives
['member of the Prussian Second Chamber', 'country', {'concept': 'former country'}] ['Member of the Prussian House of Representatives', 'country', {'concept': 'former country'}] ['member of the Reichstag of the German Empire', 'country', {'concept': 'former country'}]
SELECT DISTINCT ?q WHERE { resource:member_of_the_Reichstag_of_the_German_Empire property:country ?q . ?q rdf:type ontology:former_country }
[]
Simple Question (Coreferenced)
USER
No, I meant member of the Reichstag of the German Empire. Could you tell me the answer for that?
(Q17854096,P17,c(Q3024240))
Q17854096
['Q17854096', 'P17', {'concept': 'Q3024240'}]
['member of the Reichstag of the German Empire', 'country', {'concept': 'former country'}]
[]
Q43287
SYSTEM
German Empire
Q43287
(Q17854096,P17,c(Q3024240))
action filter_type
action find
entity Q17854096
relation P17
type Q3024240
That occupation belongs to the [ANSWER]
['Q17854096', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ?q WHERE { resource:Q17854096 property:P17 ?q . ?q rdf:type ontology:Q3024240 }
German Empire
That occupation belongs to the German Empire
German Empire
action filter_type
action find
entity member of the Reichstag of the German Empire
relation country
type former country
['member of the Reichstag of the German Empire', 'country', {'concept': 'former country'}]
SELECT DISTINCT ?q WHERE { resource:member_of_the_Reichstag_of_the_German_Empire property:country ?q . ?q rdf:type ontology:former_country }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q764995
P106
Q28640
USER
Which profession is the profession of Carl Ludwig August von Ende ?
(Q764995,P106,c(Q28640))
action filter_type
action find
entity Q764995
relation P106
type Q28640
['Q764995', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?m WHERE { resource:Q764995 property:P106 ?m . ?m rdf:type ontology:Q28640 }
Carl Ludwig August von Ende
action filter_type
action find
entity Carl Ludwig August von Ende
relation occupation
type profession
['Carl Ludwig August von Ende', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?m WHERE { resource:Carl_Ludwig_August_von_Ende property:occupation ?m . ?m rdf:type ontology:profession }
[]
profession
Q185351
SYSTEM
jurist
Q185351
(Q764995,P106,c(Q28640))
action filter_type
action find
entity Q764995
relation P106
type Q28640
The [ANSWER] is the profession of Carl Ludwig August von Ende
['Q764995', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?m WHERE { resource:Q764995 property:P106 ?m . ?m rdf:type ontology:Q28640 }
jurist
The jurist is the profession of Carl Ludwig August von Ende
jurist
action filter_type
action find
entity Carl Ludwig August von Ende
relation occupation
type profession
['Carl Ludwig August von Ende', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?m WHERE { resource:Carl_Ludwig_August_von_Ende property:occupation ?m . ?m rdf:type ontology:profession }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q122370
Q28640
USER
And what about Gottfried Keller?
(Q122370,P106,c(Q28640))
action filter_type
action find
entity Q122370
relation P106
type Q28640
['Q122370', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?m WHERE { resource:Q122370 property:P106 ?m . ?m rdf:type ontology:Q28640 }
Gottfried Keller
action filter_type
action find
entity Gottfried Keller
relation occupation
type profession
['Gottfried Keller', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?m WHERE { resource:Gottfried_Keller property:occupation ?m . ?m rdf:type ontology:profession }
[]
profession
Q28389
SYSTEM
screenwriter
Q28389
(Q122370,P106,c(Q28640))
action filter_type
action find
entity Q122370
relation P106
type Q28640
[ANSWER]
['Q122370', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?m WHERE { resource:Q122370 property:P106 ?m . ?m rdf:type ontology:Q28640 }
screenwriter
screenwriter
action filter_type
action find
entity Gottfried Keller
relation occupation
type profession
['Gottfried Keller', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?m WHERE { resource:Gottfried_Keller property:occupation ?m . ?m rdf:type ontology:profession }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q28389 Q18631187
P106
Q502895
USER
Does Stephan Jandl have a job as that profession ?
(Q18631187,P106,Q28389)
action is_in
entity Q18631187
action find
entity Q28389
relation P106
['Q18631187', 'P106', 'Q28389']
ASK WHERE { resource:Q28389 property:P106 resource:Q18631187 }
screenwriter Stephan Jandl
action is_in
entity Stephan Jandl
action find
entity screenwriter
relation occupation
['Stephan Jandl', 'occupation', 'screenwriter']
ASK WHERE { resource:screenwriter property:occupation resource:Stephan_Jandl }
[]
common name
SYSTEM
NO
(Q18631187,P106,Q28389)
action is_in
entity Q18631187
action find
entity Q28389
relation P106
[ANSWER]
['Q18631187', 'P106', 'Q28389']
ASK WHERE { resource:Q28389 property:P106 resource:Q18631187 }
No
action is_in
entity Stephan Jandl
action find
entity screenwriter
relation occupation
['Stephan Jandl', 'occupation', 'screenwriter']
ASK WHERE { resource:screenwriter property:occupation resource:Stephan_Jandl }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q43287
P20
Q502895
USER
Who died in German Empire ?
(c(Q502895),P20,Q43287)
action filter_type
action find_reverse
entity Q43287
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q43287']
SELECT DISTINCT ?z WHERE { ?z property:P20 resource:Q43287 . ?z rdf:type ontology:Q502895 }
German Empire
action filter_type
action find_reverse
entity German Empire
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'German Empire']
SELECT DISTINCT ?z WHERE { ?z property:place_of_death resource:German_Empire . ?z rdf:type ontology:common_name }
[]
common name
Q9161970 Q2562528
SYSTEM
August Gessler, Prince Friedrich of Hesse and by Rhine
Q9161970 Q2562528
(c(Q502895),P20,Q43287)
action filter_type
action find_reverse
entity Q43287
relation P20
type Q502895
[ANSWERS] died in German Empire
[{'concept': 'Q502895'}, 'P20', 'Q43287']
SELECT DISTINCT ?z WHERE { ?z property:P20 resource:Q43287 . ?z rdf:type ontology:Q502895 }
August Gessler Prince Friedrich of Hesse and by Rhine
August Gessler and Prince Friedrich of Hesse and by Rhine died in German Empire
August Gessler Prince Friedrich of Hesse and by Rhine
action filter_type
action find_reverse
entity German Empire
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'German Empire']
SELECT DISTINCT ?z WHERE { ?z property:place_of_death resource:German_Empire . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q9161970 Q2562528
P21
Q290
USER
Which sexes do those people belong to ?
(Q9161970,P21,c(Q290)) (Q2562528,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q9161970', 'P21', {'concept': 'Q290'}] ['Q2562528', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { ?q property:P21 ?k . VALUES ( ?q ) { ( resource:Q9161970 ) ( resource:Q2562528 ) } . ?k rdf:type ontology:Q290 }
August Gessler Prince Friedrich of Hesse and by Rhine
action filter_type
action find
entity prev_answer
relation gender
type sex
['August Gessler', 'gender', {'concept': 'sex'}] ['Prince Friedrich of Hesse and by Rhine', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { ?q property:gender ?k . VALUES ( ?q ) { ( resource:August_Gessler ) ( resource:Prince_Friedrich_of_Hesse_and_by_Rhine ) } . ?k rdf:type ontology:sex }
[]
sex
Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097
(Q9161970,P21,c(Q290)) (Q2562528,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
Those people belong to [ANSWER] and [ANSWER]
['Q9161970', 'P21', {'concept': 'Q290'}] ['Q2562528', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { ?q property:P21 ?k . VALUES ( ?q ) { ( resource:Q9161970 ) ( resource:Q2562528 ) } . ?k rdf:type ontology:Q290 }
male male
Those people belong to male and male
male male
action filter_type
action find
entity prev_answer
relation gender
type sex
['August Gessler', 'gender', {'concept': 'sex'}] ['Prince Friedrich of Hesse and by Rhine', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { ?q property:gender ?k . VALUES ( ?q ) { ( resource:August_Gessler ) ( resource:Prince_Friedrich_of_Hesse_and_by_Rhine ) } . ?k rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2562528
P40
Q502895
USER
Who have Prince Friedrich of Hesse and by Rhine as an offspring ?
(c(Q502895),P40,Q2562528)
action filter_type
action find_reverse
entity Q2562528
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q2562528']
SELECT DISTINCT ?q WHERE { ?q property:P40 resource:Q2562528 . ?q rdf:type ontology:Q502895 }
Prince Friedrich of Hesse and by Rhine
action filter_type
action find_reverse
entity Prince Friedrich of Hesse and by Rhine
relation child
type common name
[{'concept': 'common name'}, 'child', 'Prince Friedrich of Hesse and by Rhine']
SELECT DISTINCT ?q WHERE { ?q property:child resource:Prince_Friedrich_of_Hesse_and_by_Rhine . ?q rdf:type ontology:common_name }
[]
common name
Q164498 Q155566
SYSTEM
Louis IV, Grand Duke of Hesse, Princess Alice of the United Kingdom
Q164498 Q155566
(c(Q502895),P40,Q2562528)
action filter_type
action find_reverse
entity Q2562528
relation P40
type Q502895
[ANSWERS] have Prince Friedrich of Hesse and by Rhine as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q2562528']
SELECT DISTINCT ?q WHERE { ?q property:P40 resource:Q2562528 . ?q rdf:type ontology:Q502895 }
Louis IV, Grand Duke of Hesse Princess Alice of the United Kingdom
Louis IV, Grand Duke of Hesse and Princess Alice of the United Kingdom have Prince Friedrich of Hesse and by Rhine as an offspring
Louis IV, Grand Duke of Hesse Princess Alice of the United Kingdom
action filter_type
action find_reverse
entity Prince Friedrich of Hesse and by Rhine
relation child
type common name
[{'concept': 'common name'}, 'child', 'Prince Friedrich of Hesse and by Rhine']
SELECT DISTINCT ?q WHERE { ?q property:child resource:Prince_Friedrich_of_Hesse_and_by_Rhine . ?q rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2562528
P7
Q502895
USER
Who is Prince Friedrich of Hesse and by Rhine a sibling of ?
(Q2562528,P7,c(Q502895))
action filter_type
action find
entity Q2562528
relation P7
type Q502895
['Q2562528', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q2562528 property:P7 ?i . ?i rdf:type ontology:Q502895 }
Prince Friedrich of Hesse and by Rhine
action filter_type
action find
entity Prince Friedrich of Hesse and by Rhine
relation brother
type common name
['Prince Friedrich of Hesse and by Rhine', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Prince_Friedrich_of_Hesse_and_by_Rhine property:brother ?i . ?i rdf:type ontology:common_name }
[]
common name
Q57507
SYSTEM
Ernest Louis, Grand Duke of Hesse
Q57507
(Q2562528,P7,c(Q502895))
action filter_type
action find
entity Q2562528
relation P7
type Q502895
Prince Friedrich of Hesse and by Rhine is a sibling of Prince [ANSWER]
['Q2562528', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q2562528 property:P7 ?i . ?i rdf:type ontology:Q502895 }
Ernest Louis, Grand Duke of Hesse
Prince Friedrich of Hesse and by Rhine is a sibling of Prince Ernest Louis, Grand Duke of Hesse
Ernest Louis, Grand Duke of Hesse
action filter_type
action find
entity Prince Friedrich of Hesse and by Rhine
relation brother
type common name
['Prince Friedrich of Hesse and by Rhine', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Prince_Friedrich_of_Hesse_and_by_Rhine property:brother ?i . ?i rdf:type ontology:common_name }
[]